package com.woniu.his.mms.service;

import com.woniu.his.mms.infra.model.Drug;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.his.mms.service.dto.DosageDto;
import com.woniu.his.mms.service.dto.PageDrugDto;
import com.woniu.his.mms.service.dto.PatientDto;
import com.woniu.his.mms.service.param.*;
import com.woniu.his.mms.service.dto.DrugDto;

import java.util.List;

/**
 * <p>
 * 药品 服务类
 * </p>
 *
 * @author ZJH
 * @since 2022-11-28
 */
public interface DrugService extends IService<Drug> {

    /**
     * 查询所有药品
     * @return
     */
    List<DrugDto> queryAllDrug();
    void addDrug(AddDrugServicePram servicePram);
    void addDosage(AddDosageServiceParam param1);

    List<DosageDto> queryAllDosage();

    void deleteDrugByIds(List<Long> ids);

    PageDrugDto findDrug(FindDrugServiceParam serviceParam);

    void updateDrug(UpdateDrugServiceParam serviceParam);

    PatientDto listPatient(PatienServiceParam param);

    boolean releaseDrug(ReleaseDrugServiceParam param);

    boolean refundDrug(RefundDrugServiceParam param);
}
